package com.test;

import com.context.ApplicationContext;
import com.context.annotation.AnnotationConfigApplicationContext;
import com.test.config.ApiConfig;
import com.test.service.UserService;

public class main {

    public static void main(String[] args) {

        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(ApiConfig.class);
        UserService userService = context.getBean(UserService.class);
        String userName = userService.getUserName();
        System.out.println(userName);

    }
}
